import request from '@/sheep/request';

const GiftApi = {
  // 查询账簿
  queryAccountBooks: (data) => {
    return request({
      url: '/relation/money/queryAccountBooks',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 查询账簿详情
  queryAccountBookDetail: (data) => {
    return request({
      url: '/relation/money/queryAccountBookDetail',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 查询账簿礼金
  queryAccountBookGift: (data) => {
    return request({
      url: '/relation/money/queryAccountBookGift',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 查询账簿礼金详情
  queryAccountBookGiftDetail: (data) => {
    return request({
      url: '/relation/money/queryAccountBookGiftDetail',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 删除账簿
  deleteAccountBook: (data) => {
    return request({
      url: '/relation/money/deleteAccountBook',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '删除成功'
      },
    });
  },
  // 删除账簿礼金
  deleteAccountBookGift: (data) => {
    return request({
      url: '/relation/money/deleteAccountBookGift',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '删除成功'
      },
    });
  },
  // 添加或修改账簿礼金
  addOrUpdateAccountBookGift: (data) => {
    return request({
      url: '/relation/money/addOrUpdateAccountBookGift',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '设置成功'
      },
    });
  },
  // 批量添加账簿礼金
  batchAddAccountBookGift: (data) => {
    return request({
      url: '/relation/money/batchAddAccountBookGift',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '添加成功'
      },
    });
  },
  
  // 新增或更新账簿
  addOrUpdateAccountBook: (data) => {
    return request({
      url: '/relation/money/addOrUpdateAccountBook',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '设置成功'
      },
    });
  },

};

export default GiftApi;
